import xadmin
from xadmin import views
from apps.user import models
print(11111111111)
class BaseSetting():
    """xadmin的基本配置"""
    enable_themes = True  # 开启主题切换功能
    use_bootswatch = True

class GlobalSettings():
    """xadmin的全局配置"""
    site_title = "寻踪网"  # 设置站点标题
    site_footer = "寻踪网有限公司"  # 设置站点的页脚

xadmin.site.register(views.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSettings)

xadmin.site.register(models.User)
xadmin.site.register(models.Article)
xadmin.site.register(models.Comment)
xadmin.site.register(models.UpAndDown)
xadmin.site.register(models.Image)
xadmin.site.register(models.Talking)
xadmin.site.register(models.Collection)
xadmin.site.register(models.Appointment)
xadmin.site.register(models.Tutotial)





